package teacher.action.student;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import teacher.bean.Stuaward;
import teacher.bean.Students;
import teacher.bean.Studegreepaper;
import teacher.bean.Stuproject;
import teacher.service.student;

public class oneStu extends ActionSupport{
	private int stuId;
	List<Stuproject> stup=new ArrayList<Stuproject>();
	List<Stuaward> stua=new ArrayList<Stuaward>();
	private Studegreepaper studeg=new Studegreepaper();
	private Students stude;
	String suc;
	private int power;

	private static final long serialVersionUID = 1L;

	public String getSuc() {
		return suc;
	}

	public void setSuc(String suc) {
		this.suc = suc;
	}

	public Students getStude() {
		return stude;
	}

	public void setStude(Students stude) {
		this.stude = stude;
	}

	public int getStuId() {
		return stuId;
	}

	public void setStuId(int stuId) {
		this.stuId = stuId;
	}

	public List<Stuproject> getStup() {
		return stup;
	}

	public void setStup(List<Stuproject> stup) {
		this.stup = stup;
	}

	public List<Stuaward> getStua() {
		return stua;
	}

	public void setStua(List<Stuaward> stua) {
		this.stua = stua;
	}

	public Studegreepaper getStudeg() {
		return studeg;
	}

	public void setStudeg(Studegreepaper studeg) {
		this.studeg = studeg;
	}

	public int getPower() {
		return power;
	}

	public void setPower(int power) {
		this.power = power;
	}

	public String execute() throws Exception{
		Students stud =new Students();
		stud.setStuId(stuId);
		stude=new student().selectStudentByStu(stud);
		stup=new student().selectProByStu(stud);
		stua=new student().selectAwaByStu(stud);
		studeg=new student().selectDegByStu(stud);
		return SUCCESS;
		
	}

}
